package com.chainyoung.trademarket.entity;

public class Msg {


    /**
     * id : 1474
     * userid : 122
     * type : order
     * title :
     * content : Your order a00154708 has been cancelled
     * remark : {"orderId":"154708","type":"buy"}
     * status : 0
     * addtime : 2018-07-26 16:56:49
     * is_enabled : 1
     * is_read : false
     */

    private String id;//消息id
    private String userid;//收件人id
    private String type;//消息类型//admin,order,chat
    private String title;//消息标题
    private String content;//消息内容
    private RemarkBean remark;//其他参数
    private String status;//消息状态
    private Long addtime;//消息的发送时间
    private String is_enabled;//消息是否删除
    private boolean is_read;//消息是否已读
    private String from_name;//消息来源用户名称
    private String from_id;//聊天标识
    private String num;//未读消息条数
    private String msg_type;//消息类型 private 私聊 group 群聊 service 客服消息
    private String chat_url;//聊天室的跳转url
    private String intro;//概要


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public RemarkBean getRemark() {
        return remark;
    }

    public void setRemark(RemarkBean remark) {
        this.remark = remark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public String getIs_enabled() {
        return is_enabled;
    }

    public void setIs_enabled(String is_enabled) {
        this.is_enabled = is_enabled;
    }

    public boolean isIs_read() {
        return is_read;
    }

    public void setIs_read(boolean is_read) {
        this.is_read = is_read;
    }

    public Long getAddtime() {
        return addtime;
    }

    public void setAddtime(Long addtime) {
        this.addtime = addtime;
    }

    public String getFrom_name() {
        return from_name;
    }

    public void setFrom_name(String from_name) {
        this.from_name = from_name;
    }

    public String getFrom_id() {
        return from_id;
    }

    public void setFrom_id(String from_id) {
        this.from_id = from_id;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getMsg_type() {
        return msg_type;
    }

    public void setMsg_type(String msg_type) {
        this.msg_type = msg_type;
    }

    public String getChat_url() {
        return chat_url;
    }

    public void setChat_url(String chat_url) {
        this.chat_url = chat_url;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public  class RemarkBean {
        /**
         * orderId : 154708
         * type : buy
         */

        private String orderId;//订单消息中订单id
        private String type;//订单类型

        public String getOrderId() {
            return orderId;
        }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }
}
